<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateOrganismesTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateOrganismesLabel_idorganismes}" for="idorganismes" />
                    <h:inputText id="idorganismes" value="#{organismesController.selected.idorganismes}" title="#{bundle.CreateOrganismesTitle_idorganismes}" required="true" requiredMessage="#{bundle.CreateOrganismesRequiredMessage_idorganismes}"/>
                    <h:outputLabel value="#{bundle.CreateOrganismesLabel_nomfr}" for="nomfr" />
                    <h:inputText id="nomfr" value="#{organismesController.selected.nomfr}" title="#{bundle.CreateOrganismesTitle_nomfr}" />
                    <h:outputLabel value="#{bundle.CreateOrganismesLabel_nomar}" for="nomar" />
                    <h:inputText id="nomar" value="#{organismesController.selected.nomar}" title="#{bundle.CreateOrganismesTitle_nomar}" />
                    <h:outputLabel value="#{bundle.CreateOrganismesLabel_statut}" for="statut" />
                    <h:inputText id="statut" value="#{organismesController.selected.statut}" title="#{bundle.CreateOrganismesTitle_statut}" />
                    <h:outputLabel value="#{bundle.CreateOrganismesLabel_adresse}" for="adresse" />
                    <h:inputText id="adresse" value="#{organismesController.selected.adresse}" title="#{bundle.CreateOrganismesTitle_adresse}" />
                    <h:outputLabel value="#{bundle.CreateOrganismesLabel_ville}" for="ville" />
                    <h:inputText id="ville" value="#{organismesController.selected.ville}" title="#{bundle.CreateOrganismesTitle_ville}" />
                    <h:outputLabel value="#{bundle.CreateOrganismesLabel_codepostale}" for="codepostale" />
                    <h:inputText id="codepostale" value="#{organismesController.selected.codepostale}" title="#{bundle.CreateOrganismesTitle_codepostale}" />
                    <h:outputLabel value="#{bundle.CreateOrganismesLabel_fax}" for="fax" />
                    <h:inputText id="fax" value="#{organismesController.selected.fax}" title="#{bundle.CreateOrganismesTitle_fax}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{organismesController.create}" value="#{bundle.CreateOrganismesSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{organismesController.prepareList}" value="#{bundle.CreateOrganismesShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.CreateOrganismesIndexLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
